<!DOCTYPE html>
<html>
<head>
<?php $this->load->view('head'); ?>
</head>
<body>
<?php $this->load->view('header'); ?>
<div class="container-fluid main">
	<div class="row">
<?php $this->load->view('left'); ?>
		<div class="main-content col-md-10">
<?php $this->load->view('crumbs'); ?>
			<div class="panel panel-default panel-my">
				<div class="panel-heading">搜索</div>
				<div class="panel-body">
					<form class="form-inline" action="<?php echo site_url('admin/article/index'); ?>" method="get" accept-charset="utf-8" role="form">
						<div class="form-group">
							标题：
							<input type="text" class="form-control input-sm mr5" name="name" value="" placeholder="标题">
						</div>
						<div class="form-group">
							发布者：
							<input type="text" class="form-control input-sm mr5" name="author" value="" placeholder="发布者">
						</div>
						<div class="form-group">
							栏目：
							<select class="form-control input-sm mr5" name="category_id">
								<option>--全部--</option><?php echo $cat_dropdown; ?>
							</select>
						</div>
						<div class="form-group">
							属性：
							<select class="form-control input-sm mr5" name="flag">
								<option>--全部--</option>
							</select>
						</div>
						<button type="submit" class="btn btn-primary btn-sm">搜索</button>
					</form>
				</div>
				<!--/.panel-body -->
			</div>
			<!--/.panel -->
			<div class="panel panel-default panel-my">
				<div class="panel-heading">
					<span class="mr10">文档列表</span>
					<div class="btn-group">
						<a class="btn btn-success btn-xs" href="<?php echo site_url("admin/article/add?category_id={$category_id}"); ?>"><i class="glyphicon glyphicon-plus"></i> 添加</a>
						<button type="button" class="btn btn-success btn-xs dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
						<ul class="dropdown-menu" role="menu">
							<li><a href="<?php echo site_url("admin/article/add?category_id={$category_id}"); ?>">文章</a></li>
							<li><a href="<?php echo site_url("admin/article/add?category_id={$category_id}&special=image"); ?>">图库</a></li>
						</ul>
					</div>
				</div>
				<div class="panel-body">
					<form class="form-inline J-ajax-form" action="<?php echo site_url('admin/article/index'); ?>" method="post" accept-charset="utf-8" role="form">
						<div class="table-responsive">
							<table class="table table-striped table-hover">
								<thead>
									<tr>
										<th class="text-center" width="50">全选</th>
										<th width="150">栏目</th>
										<th>标题</th>
										<th width="120">发布者</th>
										<th width="100">发布时间</th>
										<th width="60">状态</th>
										<th>管理</th>
									</tr>
								</thead>
								<tbody>
									<tr>
										<td class="text-center"><input class="J_check" type="checkbox" name="id[]" value="<?php //echo $advert['id']; ?>"></td>
									</tr>
								</tbody>
							</table>
						</div>
						<!--/.table-responsive -->
						<div class="btn-wrap">
							<button type="submit" class="btn btn-primary J-ajax-submit-btn mr10">确认提交</button>
						</div>
					</form>
				</div>
				<!--/.panel-body -->
			</div>
			<!--/.panel -->
		</div>
		<!--/.main-content -->
	</div>
	<!--/.row -->
</div>
<!--/.container-fluid -->
<?php $this->load->view('footer'); ?>
</body>
</html>